package com.xinqi.modules.chat;

import com.xinqi.common.security.annotation.EnableXqFeignClients;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author linkai
 * @date 2023/1/10
 */
@Slf4j
@EnableDiscoveryClient
@SpringBootApplication
@EnableXqFeignClients
@EnableAsync
@ComponentScan(basePackages = {"com.xinqi.common","com.xinqi.modules.chat"})
public class ChatApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(ChatApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        log.info("(♥◠‿◠)ﾉﾞ  聊天服务启动成功   ლ(´ڡ`ლ)ﾞ  ");
    }
}
